/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditReturnProduct.java
 *
 * Created on 18 ม.ค. 2553, 15:36:32
 */

package store.backend;

/**
 *
 * @author Administrator
 */
public class PnlEditReturnProduct extends javax.swing.JPanel {

    /** Creates new form PnlEditReturnProduct */
    public PnlEditReturnProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        lblEditReturnProductIDProduct = new javax.swing.JLabel();
        txfEditReturnProductIDProduct = new javax.swing.JTextField();
        txfEditReturnProductIDStaff = new javax.swing.JTextField();
        lblEditReturnProductIDStaff = new javax.swing.JLabel();
        lblEditReturnProductOder = new javax.swing.JLabel();
        txfEditReturnProductOder = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        txaEditReturnProductNote = new javax.swing.JTextArea();
        lblEditReturnProductNote = new javax.swing.JLabel();
        lblEditReturnProductDate = new javax.swing.JLabel();
        txfEditReturnProductIDStaff1 = new javax.swing.JTextField();
        txfEditReturnProductIDStaff2 = new javax.swing.JTextField();
        lblEditReturnProductIDStaff1 = new javax.swing.JLabel();
        pnlEditReturnProduct = new javax.swing.JPanel();
        lblEditReturnProduct = new javax.swing.JLabel();
        btnEditReturnProductSave = new javax.swing.JButton();
        btnEditReturnProductcancel = new javax.swing.JButton();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        jPanel2.setMaximumSize(new java.awt.Dimension(700, 300));
        jPanel2.setPreferredSize(new java.awt.Dimension(700, 300));

        lblEditReturnProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductIDProduct.setText("รหัสสินค้า :");

        txfEditReturnProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfEditReturnProductIDProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfEditReturnProductIDProductActionPerformed(evt);
            }
        });

        txfEditReturnProductIDStaff.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfEditReturnProductIDStaff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfEditReturnProductIDStaffActionPerformed(evt);
            }
        });

        lblEditReturnProductIDStaff.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductIDStaff.setText("รหัสพนักงาน :");

        lblEditReturnProductOder.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductOder.setText("รหัสการคืนสินค้า :");

        txfEditReturnProductOder.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfEditReturnProductOder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfEditReturnProductOderActionPerformed(evt);
            }
        });

        txaEditReturnProductNote.setColumns(20);
        txaEditReturnProductNote.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txaEditReturnProductNote.setRows(5);
        jScrollPane2.setViewportView(txaEditReturnProductNote);

        lblEditReturnProductNote.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductNote.setText("สาเหตุที่คืน :");

        lblEditReturnProductDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductDate.setText("วัน/เดือน/ปี :");

        txfEditReturnProductIDStaff1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfEditReturnProductIDStaff1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfEditReturnProductIDStaff1ActionPerformed(evt);
            }
        });

        txfEditReturnProductIDStaff2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfEditReturnProductIDStaff2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfEditReturnProductIDStaff2ActionPerformed(evt);
            }
        });

        lblEditReturnProductIDStaff1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblEditReturnProductIDStaff1.setText("จำนวน :");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblEditReturnProductIDProduct)
                    .addComponent(lblEditReturnProductOder)
                    .addComponent(lblEditReturnProductIDStaff)
                    .addComponent(lblEditReturnProductNote)
                    .addComponent(lblEditReturnProductDate)
                    .addComponent(lblEditReturnProductIDStaff1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(txfEditReturnProductIDStaff1, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txfEditReturnProductIDStaff2, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txfEditReturnProductIDStaff, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txfEditReturnProductIDProduct, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txfEditReturnProductOder, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addContainerGap(393, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfEditReturnProductOder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductOder))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfEditReturnProductIDProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductIDProduct))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfEditReturnProductIDStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductIDStaff))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfEditReturnProductIDStaff2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductIDStaff1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfEditReturnProductIDStaff1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblEditReturnProductNote))
                .addContainerGap(193, Short.MAX_VALUE))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);

        pnlEditReturnProduct.setBackground(new java.awt.Color(255, 204, 102));
        pnlEditReturnProduct.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlEditReturnProduct.setPreferredSize(new java.awt.Dimension(700, 80));

        lblEditReturnProduct.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
        lblEditReturnProduct.setText("คืนสินค้า(ไปคลัง)");

        btnEditReturnProductSave.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnEditReturnProductSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N
        btnEditReturnProductSave.setMaximumSize(new java.awt.Dimension(75, 30));
        btnEditReturnProductSave.setMinimumSize(new java.awt.Dimension(75, 30));
        btnEditReturnProductSave.setPreferredSize(new java.awt.Dimension(40, 40));

        btnEditReturnProductcancel.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnEditReturnProductcancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnEditReturnProductcancel.setMaximumSize(new java.awt.Dimension(75, 30));
        btnEditReturnProductcancel.setMinimumSize(new java.awt.Dimension(75, 30));
        btnEditReturnProductcancel.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlEditReturnProductLayout = new javax.swing.GroupLayout(pnlEditReturnProduct);
        pnlEditReturnProduct.setLayout(pnlEditReturnProductLayout);
        pnlEditReturnProductLayout.setHorizontalGroup(
            pnlEditReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditReturnProductLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlEditReturnProductLayout.createSequentialGroup()
                        .addComponent(btnEditReturnProductSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnEditReturnProductcancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(lblEditReturnProduct))
                .addContainerGap(554, Short.MAX_VALUE))
        );
        pnlEditReturnProductLayout.setVerticalGroup(
            pnlEditReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlEditReturnProductLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblEditReturnProduct)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlEditReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnEditReturnProductSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEditReturnProductcancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pnlEditReturnProductLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnEditReturnProductSave, btnEditReturnProductcancel});

        add(pnlEditReturnProduct, java.awt.BorderLayout.PAGE_START);
    }// </editor-fold>//GEN-END:initComponents

    private void txfEditReturnProductIDProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfEditReturnProductIDProductActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfEditReturnProductIDProductActionPerformed

    private void txfEditReturnProductIDStaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfEditReturnProductIDStaffActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfEditReturnProductIDStaffActionPerformed

    private void txfEditReturnProductOderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfEditReturnProductOderActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfEditReturnProductOderActionPerformed

    private void txfEditReturnProductIDStaff1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfEditReturnProductIDStaff1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfEditReturnProductIDStaff1ActionPerformed

    private void txfEditReturnProductIDStaff2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfEditReturnProductIDStaff2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfEditReturnProductIDStaff2ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEditReturnProductSave;
    private javax.swing.JButton btnEditReturnProductcancel;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblEditReturnProduct;
    private javax.swing.JLabel lblEditReturnProductDate;
    private javax.swing.JLabel lblEditReturnProductIDProduct;
    private javax.swing.JLabel lblEditReturnProductIDStaff;
    private javax.swing.JLabel lblEditReturnProductIDStaff1;
    private javax.swing.JLabel lblEditReturnProductNote;
    private javax.swing.JLabel lblEditReturnProductOder;
    private javax.swing.JPanel pnlEditReturnProduct;
    private javax.swing.JTextArea txaEditReturnProductNote;
    private javax.swing.JTextField txfEditReturnProductIDProduct;
    private javax.swing.JTextField txfEditReturnProductIDStaff;
    private javax.swing.JTextField txfEditReturnProductIDStaff1;
    private javax.swing.JTextField txfEditReturnProductIDStaff2;
    private javax.swing.JTextField txfEditReturnProductOder;
    // End of variables declaration//GEN-END:variables

}
